import { Vue, Component, Prop, Watch, Emit, Inject, InjectReactive, Model, Provide } from 'vue-property-decorator'
import { AutoModel } from '../automodel';


@Component({
  components: { AutoModel }
})
export class myHeader extends Vue {
  @Inject({ from: 'providename' })
  injectName!: string;

  name: string = 'abcd';

  render() {
    return (
      <div>
        <p>这是一个头部组件</p>
        {this.injectName}

      </div>
    );

  }
}
